<?php
function V_HoadonSearch(&$arrayData){
	$ulr = "?".MODUL."=hoadon&".ACTION."=SearchHD";//htmlspecialchars($_SERVER['QUERY_STRING']);
	
	?>
	<script>
	function SearchCode(){
		var form = document.frmSearchText ;
		if(form.mahoadon.value == ""){
			alert("Mời bạn nhập vào mã hóa đơn");
			form.mahoadon.focus();
			return false;
		}	
		return true;
	}
	</script>
	<?= CM_showMessage(); ?>
	<?= CM_showError(); ?>
	<table width="100%" height="200%" border="0" cellpadding="3"cellspacing="0" bordercolor="#FF9900" bordercolordark="white">
		<form action="<?=$ulr?>" method="post" name="frmSearchText" id="frmSearchText" >
		<input type="hidden" name="modul" value="<?=CM_getParameter("modul")?>" /> 
		<input type="hidden" name="action" value="<?=CM_getParameter("action")?>" /> 
		<input type="hidden" name="ACTION2" value="<?=CM_getParameter("ACTION2")?>" /> 
	  <tr>
		<td width="324"></td>
	  </tr>
	  <tr>
		<td align="left" valign="top" background="" class="left-menu-aki">
		<table width="97%" border="1" align="center" cellpadding="3"cellspacing="0" bordercolor="#FF9900" bordercolordark="white">
			<tr class=bk12-140 bgcolor="#FFE59F">
			  <td colspan="3" align="left" ><div align="center"><strong>Tìm Kiếm Hóa Đơn</strong></div></td>
		  </tr>
		  	<tr>
			  <td width="231" align="left" bgcolor="#FFE59F" class=bk12-140 ><font color="#000066">Mã hóa đơn</font></td>
			  <td width="936" colspan="2" align="left"><input name="mahoadon" type="text" class="form200" style="WIDTH: 195px" /></td>
		    </tr>
			<tr>
			  <td align="left" bgcolor="#FFE59F" class=bk12-140 ><font color="#000066">Hình thức thanh toán</font> </td>
			  <td colspan="2" align="left">
			  	<select name="hinhthucthanhtoan" style="WIDTH: 200px">
			  		<option value="" selected>======Tìm tất cả=======</option>
					<option value="1">Thanh toán qua Bảo Kim</option>
					<option value="2">Thanh toán trả sau</option>
				</select>
			  </td>
		  </tr>
			
			<tr>
			  <td align="left" bgcolor="#FFE59F" class=bk12-140 ><font color="#000066">Trạng thái đơn hàng</font></td>
			  <td colspan="2" align="left">
			  	<SELECT name="trangthaidonhang" id="trangthaidonhang" style="WIDTH: 200px">
			  		<OPTION value="1" >Đặt hàng</OPTION>					
					<OPTION value="2">Đã thanh toán</OPTION>
				</SELECT>
			  </td>
		  </tr>
			
			<tr>
			  <td align="left">&nbsp;</td>
			  <td ><span class="bk12-140">
			      <input type="submit" name="Submit" value="     Tìm   " />
		        <input name="nhaplai" type="reset" id="re" value=" Nhập lại   " />
		      </span></td>
			</tr>
		  </table></td>
	  </tr>
	  </form>
	</table>
	
	<?php
}
?>

	